package com.ruoyi.system.mapper.equipment;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.equipment.BxwxDTO;
import com.ruoyi.system.domain.equipment.EquipmentBook;
import com.ruoyi.system.domain.equipment.EquipmentBookDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备台账Mapper接口
 *
 * @author ruoyi
 * @date 2023-03-01
 */
public interface EquipmentBookMapper extends BaseMapper<EquipmentBook> {

    List<EquipmentBookDTO> getList(@Param("param") EquipmentBook equipmentBook);

    EquipmentBookDTO getInfoById(Long bookId);

    /**
     * 根据设备id查询设备信息
     * @param equipmentId
     * @return
     */
    BxwxDTO selectEquipmentBookById(Long equipmentId);
}
